package com.huike.clues.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.huike.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 课程管理
 * @TableName tb_course
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TbCourse extends BaseEntity {
    /**
     * 课程id
     */
    private Long id;

    /**
     *
     */
    private String code;

    /**
     * 名称
     */
    private String name;

    /**
     * 学科
     */
    private String subject;

    /**
     * 浠锋牸
     */
    private Integer price;

    /**
     *
     */
    private String applicablePerson;

    /**
     * 课程描述信息
     */
    private String info;

    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 是否删除 1 是
     */
    private Integer isDelete;

    private static final long serialVersionUID = 1L;
}